package com.lagou.bean;

import com.lagou.service.RandomSleepService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ConsumerComponent {

    @Reference
    private RandomSleepService randomSleepService;

    public String methodA(String name, int timeToWait) { return randomSleepService.methodA(name, timeToWait); }
    public String methodB(String name, int timeToWait) { return randomSleepService.methodB(name, timeToWait); }
    public String methodC(String name, int timeToWait) { return randomSleepService.methodC(name, timeToWait); }

}
